<?php defined('In33hao') or exit('Access Invalid!');?>

<div class="tabmenu">
 <ul class="tab pngFix">
<!--  <li class="active"><a href="#">佣金管理</a></li>-->
<li <?php if($_GET['state'] == 0){?> class="active" <?php }?>><a href="index.php?act=<?php if($output['class']==0){ echo "cash"; }if($output['class']==1){ echo "cash_store"; } if($output['class']==2){ echo "cash_promotion"; } if($output['class']==3||$output['class']==4){ echo "cash_agent"; } if($output['class']==5){ echo "cash_sq"; }
    ?>&op=index&state=0">审核中</a></li>
<li <?php if($_GET['state'] == 1){?> class="active" <?php }?>><a href="index.php?act=<?php if($output['class']==0){ echo "cash"; }if($output['class']==1){ echo "cash_store"; } if($output['class']==2){ echo "cash_promotion"; } if($output['class']==3||$output['class']==4){ echo "cash_agent"; } if($output['class']==5 ){ echo "cash_sq"; }
    ?>&op=index&state=1">提现成功</a></li>
  <li <?php if($_GET['state'] == 2){?> class="active" <?php }?>><a href="index.php?act=<?php if($output['class']==0){ echo "cash"; }if($output['class']==1){ echo "cash_store"; } if($output['class']==2){ echo "cash_promotion"; } if($output['class']==3||$output['class']==4){ echo "cash_agent"; } if($output['class']==5 ){ echo "cash_sq"; } ?>&op=index&state=2">提现失败</a></li>

 </ul>
  </div>
  <div class="alert alert-block mt10 mb10">
      <ul>
          <li>1、相关佣金管理会在会员的账户中操作。</li>
          <li>2、相关佣金管理费用在会员的账户中结算。</li>
          <li>3、<strong style="color: red">你可以根据时间条件搜索佣金管理，然后选择相应的操作</strong>。</li>
    </ul>
  </div>
<table class="search-form">
<form method="get" action="index.php" target="_self">
    <input type="hidden" name="act" value="<?php if($output['class']==0){ echo "cash"; }if($output['class']==1){ echo "cash_store"; } if($output['class']==2){ echo "cash_promotion"; } if($output['class']==3||$output['class']==4){ echo "cash_agent"; } if($output['class']==5 ){ echo "cash_sq"; }
    ?>" />
    <input type="hidden" name="op" value="index" />
    <input type="hidden" name="state" value="<?php echo $_GET['state'];?>" />
    <input type="hidden" name="paystate" value="<?php echo $_GET['paystate'];?>" />
    <tr>
        <td class="w160" style="float:right"><input class="text" type="text" class="w160" name="name" placeholder="请输入单号或会员名称"  value="<?php echo $output['name'];?>"   /></td>
      <td class="w70 tc"><label class="submit-border">
        <input name="submit" type="submit" class="submit" value="<?php echo $lang['nc_search'];?>" />
      </label>
      </td>
    </tr>
  </form>
</table>


<table class="ncsc-default-table">
  <thead>
    <tr>
      <th class="w50">提现单号</th>
      <th>会员名称</th>
      <th class="w130">提现金额</th>
      <th class="w130">银行卡号</th>
      <th class="w90"><span class="w130">提现时间</span></th>
      <th class="w90">审核时间</th>
      <th class="w90">提现状态</th>
      <th class="w110">操作</th>
    </tr>
  </thead>
  <tbody>
     <?php foreach($output['list'] as $value) {?>
   <tr class="bd-line">
      <td><?php echo $value['order_sn'];?></td>
      <td><?php echo $value['member_name'];?></td>
      <td><?php echo $value['cash'];?></td>
      <td><?php echo $value['withdrawals_card'];?></td>
      <td><?php echo date('Y-m-d H:i:s',$value['time']);?></td>
      <td><?php echo empty($value['verification_time']) ? '':date('Y-m-d H:i:s',$value['verification_time']);?></td>
      <td>
            <?php
                if($value['state'] == 0 ){
                    echo '<font color="blue">待审核</font>';
                }else if($value['state'] == 1 ){
                     echo '<font color="green">支付成功</font>';
                }else if($value['state'] == 2 && $value['pdc_payment_state'] == 2){
                     echo '<font color="red">支付失败</font>';
                }
            ?>

      </td>
      <td class="nscs-table-handle">
            <span>
                <a href="index.php?act=<?php if($output['class']==0){ echo "cash"; }if($output['class']==1){ echo "cash_store"; } if($output['class']==2){ echo "cash_promotion"; } if($output['class']==3||$output['class']==4){ echo "cash_agent"; } if($output['class']==5){ echo "cash_sq"; }?>&op=edit&id=<?php echo $value['id'];?>" class="btn-blue">
                  <i class="icon-edit"></i>
                  <p>编辑</p>
              </a>
          </span>
      </td>
    </tr>
     <?php } ?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="20"><div class="pagination"><?php echo $output['show_page']; ?></div></td>
    </tr>
  </tfoot>
</table>
<link type="text/css" rel="stylesheet" href="<?php echo RESOURCE_SITE_URL."/js/jquery-ui/themes/ui-lightness/jquery.ui.css";?>"/>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/i18n/zh-CN.js" charset="utf-8" ></script>
<script type="text/javascript">
    $(document).ready(function(){
            $('#txt_startdate').datepicker();
            $('#txt_enddate').datepicker();
    });
</script>